//
//  WmcDelegate.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/4/15.
//

import Foundation

// MARK: - [WmcDelegate]

open class WmcUIDelegate {
    // Open

    /// 页面代理
    open weak var viewControllerDelegate: WmcViewControllerDelegate?

    /// 首页代理
    open weak var homeDelegate: WmcHomeDelegate?
    /// 相机设置页代理
    open weak var cameraSettingDelegate: WmcCameraSettingDelegate?
    /// 本地相册代理
    open weak var localAlbumDelegate: WmcLocalAlbumDelegate?
    /// 媒体浏览页代理
    open weak var mediaBrowseDelegate: WmcMediaBrowseDelegate?
    /// 拍照预览页代理
    open weak var photoPreviewDelegate: WmcPhotoPreviewDelegate?
    /// 水印编辑页代理
    open weak var editWatermarkDelegate: WmcEditWatermarkDelegate?
    /// 水印选择页代理
    open weak var selectWatermarkDelegate: WmcSelectWatermarkDelegate?

    
    /// 个人云相册选项卡代理
    open weak var personCloudAlbumTabBarDelegate: WmcPersionCloudAlbumTabBarDelegate?
    /// 个人云相册 - 全部照片代理
    open weak var persionCloudAlbumAllPhotoDelegate: WmcPersionCloudAlbumAllPhotoDelegate?
    /// 个人云相册 - 分类相册代理
    open weak var personCloudAlbumClassifyAlbumDelegate: WmcPersonCloudAlbumClassifyAlbumDelegate?

    // Internal

    /// 释放代理
    func releaseDelegate() {
        viewControllerDelegate = nil
        homeDelegate = nil
        cameraSettingDelegate = nil
        localAlbumDelegate = nil
        mediaBrowseDelegate = nil
        photoPreviewDelegate = nil
        editWatermarkDelegate = nil
        selectWatermarkDelegate = nil
        // 云相册
//        personCloudAlbumTabBarDelegate = nil
//        cloudAllPhotoDelegate = nil
//        cloudClassifyAlbumDelegate = nil
//        cloudMineSettingDelegate = nil
    }
}
